package com.gy.api.pc.content.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class ArticleSearchDto implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "状态  0 草稿 1 发布上线 2 下线")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "1.电影资讯 2.办事须知 3.工作要闻 4.政策文件")
    private String types;
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String startTime;
    @ApiModelProperty(value = "结束时间 yyyy-MM-dd")
    private String endTime;



    @ApiModelProperty(value = "页数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;


    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}
